package com.example.qt.ptplatform.controller;

import com.example.qt.ptplatform.service.impl.AdminService;
import com.example.qt.ptplatform.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private AdminService adminService;

    // 批量封号接口
    @PostMapping("/batchBanUsers")
    public ResponseEntity<JsonResult> batchBanUsers() {
        String result = adminService.batchBanUsers();
        return ResponseEntity.ok(JsonResult.success(result));
    }
}

